package com.ibeetl.admin.api.dao;

import com.ibeetl.admin.api.entity.TravelPictureList;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.SqlResource;
import org.beetl.sql.mapper.annotation.Update;

import java.util.Date;
import java.util.List;

@SqlResource("api.travelPicture")
public interface TravelPictureDao extends BaseMapper<TravelPictureList> {

    List<TravelPictureList> queryByAttractionId(long attraction_id,long user_id);

    List<Long> queryNewIdByAttractionId(long attraction_id,long user_id);

    List<TravelPictureList> queryByAttsId(long atts_id,long user_id);
    @Update
    void updateState(Long pictureId, int state);
    @Update
    void deleteByAttsId(long attsId);
}
